import require from "./config"

export function login(data) {
  return require({
    url: "/login",
    method: "post",
    datatype: 'json',
    data
  })
}

export function getInfo(token){
  return require({
    url: '/getInfo',
    method: 'get',
    params: { token }
  })
}

export function outlogin(){
  return require({
    url: '/outlogin',
    method: 'post'
  })
}
